//
// Created by xuxiao on 25-1-8.
//

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>

void printWithGlitch(const char *str) {
    int length = strlen(str);
    char display[length + 1];
    memset(display, 0, length + 1);

    for (int i = 0; i < length; ++i) {
        while (display[i] != str[i]) {
            display[i] = rand() % 95 + 32;
            printf("\r%s", display);
            fflush(stdout);
            usleep(10000);
        }
    }
    printf("\n");
}

int main() {
    char in[10];
    scanf("%9s", in);
    srand(time(NULL));
    printWithGlitch(in);
    return 0;
}
